package com.huirui.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huirui.server.pojo.dto.DeliveryAddressDTO;
import com.huirui.server.pojo.entity.DeliveryAddress;
import com.huirui.server.pojo.vo.DeliveryAddressVo;
import jakarta.validation.Valid;

import java.util.List;

/**
 * @author yujun
 * @description 针对表【t_delivery_address(用户收货地址表)】的数据库操作Service
 * @createDate 2025-09-14 16:58:34
 */
public interface DeliveryAddressService extends IService<DeliveryAddress> {

    List<DeliveryAddressVo> listUserAddress();

    void save(@Valid DeliveryAddressDTO addressDTO);

    void deleteDeliveryAddressById(Long id);

    void modifyDeliveryAddress(Long id, @Valid DeliveryAddressDTO addressDTO);

    DeliveryAddressVo getDefaultDeliveryAddress();

    String getChinaCities();

}
